<div id="$!{id}" class="$!{clazz}" style="$!{style}">
	#set($flag = true)
	#if($current == 1)
	<div class="button">上一页</div>
	#else
	<div class="button page" onclick="javascript:previous();">上一页</div>
	#end
	
	#foreach($index in [1 .. $maximum])
		#if($current == $index)
		<div id="current-page" class="page">$index</div>
		#set($flag = true)
		#else
			#set($gap = $index - $current)
			#if($index == 1 || $index == $maximum)
			<div class="page" onclick="javascript:show('$index');">$index</div>
			#set($flag = true)
			#elseif($gap < 3 && $gap > -3)
			<div class="page" onclick="javascript:show('$index');">$index</div>
			#set($flag = true)
			#elseif($flag == true)
			<div class="ellipsis">...</div>
			#set($flag = false)
			#end
		#end
	#end
	
	#if($current == $maximum)
	<div class="button">下一页</div>
	#else
	<div class="button page" onclick="javascript:next();">下一页</div>
	#end

	<div id="paging-param">
		<input type="hidden" name="max" value="$!maximum" disabled="disabled" />
		<input type="hidden" name="condition" value="$!condition" />
		跳转到第
		<input name="current" value="$current" style="text-align:center;" size="1" title="取值范围:1 ~ $maximum,按下Enter键快速跳转" />
		页 | 每页显示
		<input name="capacity" value="$capacity" style="text-align:center;" size="1" title="取值范围:0 ~ 100,按下Enter键快速查询" />
		条
		<button>确定</button>
	</div>
</div>